package com.bwie.controller;
import com.bwie.pojo.Borrow;
import com.bwie.service.BorrowService;
import com.bwie.service.impl.BorrowServiceImpl;
import com.bwie.utils.R;
import com.bwie.vo.PageInfoVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import org.springframework.beans.factory.annotation.Autowired;

/**
* (t_borrow)表控制层
*
* @author xxxxx
*/
@Api(tags = "借款管理")
@RestController
@RequestMapping("/shop/borrow")
public class BorrowController {
/**
* 服务对象
*/
    @Autowired
    private BorrowService borrowService;

    @ApiOperation("借款列表")
    @PostMapping("/getBorrowList")
    public R getBorrowList(@RequestBody PageInfoVo pageInfoVo){
        return borrowService.getBorrowList(pageInfoVo);
    }

    @ApiOperation("类型列表")
    @PostMapping("/dictType")
    public R dictType( ){
    return borrowService.dictType();
    }
}
